﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OrganizationStructureTree.Models
{
    public class User
    {
        [Key]
        public int ID { get; set; }

        public string Password { get; set; }

        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string MiddleName { get; set; }

        public string Email { get; set; }
        public string Phone { get; set; }

        public string Company { get; set; }
        public string Department { get; set; }
        public string Project { get; set; }
        public string Position { get; set; }
        public string Manager { get; set; }

        public string ImageSource { get; set; }
        
        [DefaultValue(false)]
        public bool IsActivated { get; set; }

        public virtual List<UserNode> Nodes { get; set; }

        public User()
        {
            Nodes = new List<UserNode>();
        }
    }
}